package com.dq.repository.user.centre;

import com.dq.domain.sys.user.user.centre.UserLable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author cf
 */
@Repository
public interface UserLableRepository extends JpaRepository<UserLable, Long> {
    List<UserLable> findByDeletedFalseAndType(UserLable.LableType type);
    UserLable findByDeletedFalseAndNameAndType(String name, UserLable.LableType type);
    List<UserLable> findByDeletedFalseAndNameLikeAndType(String name, UserLable.LableType type);
}
